using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;

namespace EYDIngenieria.ERP.ObjetosDeNegocio.Dominio
{
    [ActiveRecord]
    public class Desglose:ActiveRecordBase<Desglose>
    {
      
        private double debe;
        private double haber;
        private CuentaContable cuentaContable;
        private DateTime fecha;
        private int id;
        private AsientoContable asientoContable;

        [BelongsTo("IdAsientoContable")]
        public AsientoContable AsientoContable
        {
            get { return asientoContable; }
            set { asientoContable = value; }
        }


        [PrimaryKey(PrimaryKeyType.Native)]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        [Property]
        public DateTime Fecha
        {
            get { return fecha; }
            set { fecha = value; }
        }


        
        [BelongsTo("IdCuentaContable")]
        public CuentaContable CuentaContable
        {
            get { return cuentaContable; }
            set { cuentaContable = value; }
        }



        [Property]
        public double Haber
        {
            get { return haber; }
            set { haber = value; }
        }

        [Property]
        public double Debe
        {
            get { return debe; }
            set { debe = value; }
        }


    }
}
